package com.zyz.sunliky.mapper.erp;


import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

@Mapper
public interface ErpMapper  {

    @MapKey("uuid")
    List<Map> getOrderInfo(String supplierNo);

    /**
     * erp部门信息
     * @return
     */
    List<Map> departList();

    /**
     * 获取erp供应商信息
     * @return
     */
    Map getErpSupplier(String supplierCode);

    /**
     * erp信息
     * @return
     */
    List<Map> get0rderLine();


    String project(String supplierNo);

    /**
     * 获取erp中间表凭证号id
     * @return
     */
    List<String> erpHeadList();

    /**
     * 同步收货表头
     * @param map
     * @return
     */
    int insertReceiptHead(Map map);

    int insertReceiptHead(List<Map> map);


    int addReceiptDetail(@Param("list") List<Map> list);

    List<Map<String, Object>>getOrderNumber(String id);
    List<Map<String, Object>>getOrderNumber1(String  id);

    void updateStatus(String id);
    String getOrderStatus(String id);

    BigDecimal getCost(String code);

    /**计划/非计划物料采购查历史记录**/
    int getCount(String id);

    int getCountProduction(String id);
    List<Map<String, Object>> sales(String id);

    Map<String,BigDecimal> getProductCost(String id);

    Map<String, Object>  getPrice(@Param("xsxh")String xsxh);

}
